package com.varian.task.config;

import com.varian.task.core.TaskListenerContainerAdapter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author ben
 * @since 2024/11/21
 */
@AutoConfiguration
public class VarianTaskAutoConfig {

    @Bean
    public TaskListenerContainerAdapter varianJobExecutor(MessageConverter messageConverter){
        return new TaskListenerContainerAdapter(messageConverter);
    }
}
